<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../../assets/img/favicon-144.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../../assets/img/favicon-144.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../../assets/img/favicon-72.png">
<link rel="apple-touch-icon-precomposed" href="../../assets/img/favicon-32.png">
<link rel="shortcut icon" href="../../assets/img/favicon-32.png">

<link rel="stylesheet" href="../../assets/css/vk.css"/>
<link rel="stylesheet" href="../../assets/css/prism.css"/>


<vk-title>vkCmdBeginTransformFeedbackEXT | NVK</vk-title>

<vk-centered>

  <vk-navigation>
  <vk-search-title>Search</vk-search-title>
  <vk-search>
    <input type="text" id="search" autocomplete="off" />
    <vk-search-results>
      <ol id="search-list">
        <li id="no-search-results">No Results</li>
      </ol>
    </vk-search-results>
  </vk-search>
  <vk-section-title style="margin-top: 1em;">Categories</vk-section-title>
  <vk-categories></vk-categories>
</vk-navigation>


  <vk-struct>

    <vk-name>vkCmdBeginTransformFeedbackEXT</vk-name>

    <vk-description>Make transform feedback active in the command buffer</vk-description>

    <vk-section-title>Syntax</vk-section-title>
    <vk-syntax>
      <pre><code class="language-js">void vkCmdBeginTransformFeedbackEXT();
</code></pre>
    </vk-syntax>

    <vk-section-title>Parameters</vk-section-title>

    <vk-properties>
      <vk-property-entry>
        <vk-property-parameter>commandBuffer</vk-property-parameter>
        <vk-property-type type="object"><a href="../handles/VkCommandBuffer.html">VkCommandBuffer</a></vk-property-type>
        <vk-property-description> is the command buffer into which the command is recorded.</vk-property-description>
      </vk-property-entry>
      <vk-property-entry>
        <vk-property-parameter>firstCounterBuffer</vk-property-parameter>
        <vk-property-type type="number">Number</vk-property-type>
        <vk-property-description> is the index of the first transform feedback buffer corresponding to <b>pCounterBuffers</b>[0] and <b>pCounterBufferOffsets</b>[0].</vk-property-description>
      </vk-property-entry>
      <vk-property-entry>
        <vk-property-parameter>counterBufferCount</vk-property-parameter>
        <vk-property-type type="number">Number</vk-property-type>
        <vk-property-description></vk-property-description>
      </vk-property-entry>
      <vk-property-entry>
        <vk-property-parameter>pCounterBuffers</vk-property-parameter>
        <vk-property-type type="array">Array<vk-property-type type="object">[<a href="../handles/VkBuffer.html">VkBuffer]</a></vk-property-type></vk-property-type>
        <vk-property-description> is an optional array of buffer handles to the counter buffers which contain a 4 byte integer value representing the byte offset from the start of the corresponding transform feedback buffer from where to start capturing vertex data. If the byte offset stored to the counter buffer location was done using <b><a href="../calls/vkCmdEndTransformFeedbackEXT.html">vkCmdEndTransformFeedbackEXT</a></b> it can be used to resume transform feedback from the previous location. If <b>pCounterBuffers</b> is <i>null</i>, then transform feedback will start capturing vertex data to byte offset zero in all bound transform feedback buffers. For each element of <b>pCounterBuffers</b> that is <b>VK_NULL_HANDLE</b>, transform feedback will start capturing vertex data to byte zero in the corresponding bound transform feedback buffer.</vk-property-description>
      </vk-property-entry>
      <vk-property-entry>
        <vk-property-parameter>pCounterBufferOffsets</vk-property-parameter>
        <vk-property-type type="typedarray"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigUint64Array">BigUint64Array</a></vk-property-type>
        <vk-property-description> is an optional array of offsets within each of the <b>pCounterBuffers</b> where the counter values were previously written. The location in each counter buffer at these offsets <i>must</i> be large enough to contain 4 bytes of data. This data is the number of bytes captured by the previous transform feedback to this buffer. If <b>pCounterBufferOffsets</b> is <i>null</i>, then it is assumed the offsets are zero.</vk-property-description>
      </vk-property-entry>
      
    </vk-properties>

  </vk-struct>

</vk-centered>

<script>
const IS_ROOT = false;
</script>

<script type="text/javascript" src="../../assets/js/prism.min.js"></script>
<script type="text/javascript" src="../../assets/js/index.js"></script>
